import QtQuick 2.12
import QtQuick.Window 2.12
import QtQuick.Controls 2.5
import QtQuick.Layouts 1.12
ApplicationWindow {
    id:appWindoow
    width: 850
    height: 650

    property var userInfo
//        width: 1138
//        height: 800
    visible: true
    title: qsTr("Hello World")

    //window定义的信号
    signal test(int s,int value)

    function logTest(ss,vv){
            console.log(ss,vv)
    }

    //        minimumHeight: 550
    //        minimumWidth: 850
    //        maximumHeight: 550
    //        maximumWidth:850
    function loding(ss,value){
        appWindoow. height=800
        appWindoow.width= 1138
        appWindoow.x=480
        appWindoow.y=100
        // console.log("接收到参数"+value.nickname)
        homePage.user=value
        homePage.source=ss

        console.log(ss)
    }



    Loader {
        anchors.fill: parent
        id: homePage
        //test
                // source: "ChatFriendLsitPage.qml"
//                  source: "O.qml
                         source: "LoginPage.qml"
                              // source: "ZZTestPage.qml"
//       source: "FriendPage.qml"
        //begin


//        source:"FriendPage.qml"
        property var user
               // source: "ZTest.qml"
    }

}




